#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main() {
    int t = 0, k = 0;
    while (scanf("%d", &t) != EOF) {
        if (t > 0)
        {
            k = 1;
        }
        else if (t < 0)
        {
            k = 0;
        }
        else if (t == 0)
        {
            float k = 1 / 2.0;
            printf("%.1f\n", k);
            continue;
        }
        printf("%d\n", k);
    }
    return 0;
}